package com.systop.busafter.bus.service.impl;
import com.systop.busafter.bus.mapper.BusMapper;
import com.systop.busafter.bus.service.BusService;
import com.systop.commer.pojo.Bus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BusServiceImpl implements BusService {

    @Autowired
    private BusMapper busMapper;


    @Override
    public int updatabus(Bus bus) {
        return busMapper.updatabus(bus);
    }

    @Override
    public int insertbus(Bus bus) {
        return busMapper.insertbus(bus);
    }

    @Override
    public List<Bus> busListall() {
        return busMapper.busListall();
    }

    @Override
    public List<Bus> busIdlist(int bus_id) {
        return busMapper.busIdlist(bus_id);
    }

    @Override
    public Bus BusId(int bus_id) {
        return busMapper.BusId(bus_id);
    }

    @Override
    public int deletebus(int bus_id) {
        return busMapper.deletebus(bus_id);
    }

    @Override
    public List<Bus> driverIdall(int bus_driver_id) {
        return busMapper.driverIdall(bus_driver_id);
    }

    @Override
    public List<Bus> buspriceall(float bus_price) {
        return busMapper.buspriceall(bus_price);
    }

    @Override
    public List<Bus> buscouponall(float bus_coupon) {
        return busMapper.buscouponall(bus_coupon);
    }

    @Override
    public List<Bus> busstateall(int bus_state) {
        return busMapper.busstateall(bus_state);
    }

    @Override
    public List<Bus> busdrivername(String bus_s) {
        return busMapper.busdrivername(bus_s);
    }
}
